package lntu.d1106.demo;

public class Person  {
    private String name;

    public Person() {
    }

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void howToPlay(Sports s ){
        System.out.print(this.name+"在");
        s.play();
   }


    public static void main(String[] args) {
        Person p1 = new Person();
        p1.setName("zhangsan");
        Football f = new Football();
        p1.howToPlay(f);
    }
}

